﻿@model ADShop.Models.PromotionsProduct

@{
    ViewBag.Title = "Create";
}

<h2>Create PromotionsProduct</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PromotionsProduct</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDPromotions)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDPromotions)
            @Html.ValidationMessageFor(model => model.IDPromotions)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDProduct)
        </div>
        <div class="editor-field">
           @Html.DropDownList("IDProduct", String.Empty)
            @Html.ValidationMessageFor(model => model.IDProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FromDay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FromDay)
            @Html.ValidationMessageFor(model => model.FromDay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ToDay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ToDay)
            @Html.ValidationMessageFor(model => model.ToDay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Quantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Quantity)
            @Html.ValidationMessageFor(model => model.Quantity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Create" class="btn btn-green" />
        </p>
    </fieldset>
}
    <div>

    <p>
        @Html.ActionLink("Bảng Danh Sách Sản Phẩm", "Index", null, new { @class = "label label-default" })
    </p>
</div>


